package com.woniu.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.woniu.pojo.Coach;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woniu.vo.CoachSearchVo;
import com.woniu.vo.QueryCoachDetailVo;
import com.woniu.vo.QueryCoachVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xie
 * @since 2022-10-12
 */
public interface CoachMapper extends BaseMapper<Coach> {

    IPage selectByItemInPage(@Param("co") Coach coach, IPage page);

    QueryCoachDetailVo selectDetailById(String id);

    String[] selectRoleById(String id);

    List<CoachSearchVo> selectName();
}
